# GENERAL SETTINGS
# -----------------------------------------------------------------------------
# All app settings on the client side should be defined here.

class Settings

    # General settings.
    # -------------------------------------------------------------------------
    General:
        # When debug is true, most actions will be logged to the console.
        debug: true
        # Default date format to use on textboxes.
        dateFormat: "MMM D YYYY HH:mm:ss"
        # Cookie expires in 1 year by default.
        cookieExpires: 365
        # Default ISO date format to be used by Moment.js (client side).
        isoDateFormat: "YYYY-MM-DD HH:mm:ss Z"

    # UI settings.
    # -------------------------------------------------------------------------
    UI:
        # Default fade interval used by jQuery.
        fadeInterval: 1000
        # Default field warning / blink interval (when validation fails).
        fieldWarnDelay: 1000
        # Default slide interval.
        slideInterval: 400

    # Sync settings.
    # -------------------------------------------------------------------------
    Sync:
        timeout: 20000

    # Egg Timer settings.
    # -------------------------------------------------------------------------
    EggTimer:
        # Fade in and out delay when countdown starts.
        fadeDelay: 700
        # Start blinking the egg when there are X seconds remaining.
        blinkInSeconds: 10
        # Repeat the egg shake and play the bell again after X milliseconds.
        repeatAlertAfter: 2200
        # Shake the egg for how long (in milliseconds).
        shakeDuration: 60000
        # Delay of tooltips and alerts.
        tooltipDelay: 3000

# Create settings instance on the window.
window.App.Settings = new Settings()